const install = (Vue, vm) => {
    //路由延迟跳转
    Vue.prototype.$u.routeDelay = (config) => {
        setTimeout(() => vm.$u.route(config), 700)
    }
    //页面数据回调
    Vue.prototype.$u.pageCallBack = (pageRoute, call, params) => {
        let pages = getCurrentPages(), targetPage = pages.find(page => page.route === pageRoute)
        targetPage.$vm[call](params);//重点$vm
    }
    //页面数据回调-异步
    Vue.prototype.$u.pageCallBackDelay = (pageRoute, call, params) => {
        setTimeout(() => vm.$u.pageCallBack(pageRoute, call, params), 500)
    }
}
export default {
    install
}
